package com.pktechan.api.service;

import com.pktechan.api.base.BaseService;
import com.pktechan.api.entity.MiniSubscribeMessageRecord;

import java.util.List;

/**
 * @program: cloudfloating
 * @description: 消息订阅记录
 * @author: qx.zhang
 * @create: 2021-06-23 11:30
 **/
public interface MiniSubscribeMessageRecordService extends BaseService<MiniSubscribeMessageRecord> {
    /**
     * 保存或更新
     *
     * @param miniSubscribeMessageRecord
     */
    void saveOrUpdate(MiniSubscribeMessageRecord miniSubscribeMessageRecord);

    /**
     * 根据OPenID查询客户是否订阅消息
     *
     * @param openId
     * @return
     */
    List<MiniSubscribeMessageRecord> getListByOpenId(String openId);
}
